package com.beiding.hotel.t;

import java.net.URL;
import java.net.URLClassLoader;

public class T {

    public static void main(String[] args) {

        URLClassLoader systemClassLoader = (URLClassLoader) ClassLoader.getSystemClassLoader();
/*
        ClassLoader classLoader = new URLClassLoader(systemClassLoader.getURLs(), null) {
            @Override
            public URL getResource(String name) {
                if (name.equals("")) {

                }
                return super.getResource(name);
            }
        };*/


        //这里面无法处理
        URL resource = ClassLoader.getSystemClassLoader().getResource("com/beiding");

        System.out.println(resource);

    }

    public void f() {
        URL resource = T.class.getResource(T.class.getName().replace(".", "/") + ".class");

        System.out.println(resource);
    }

}
